﻿import request from '/@/utils/request';
enum Api {
  AddSysHolidayDetail = '/api/sysHolidayDetail/add',
  DeleteSysHolidayDetail = '/api/sysHolidayDetail/delete',
  UpdateSysHolidayDetail = '/api/sysHolidayDetail/update',
  SaveSysHolidayDetail = '/api/sysHolidayDetail/save',
  PageSysHolidayDetail = '/api/sysHolidayDetail/page',
  ExportSysHolidayDetail = 'api/sysHolidayDetail/export',
}

//导出工厂日历排版
export const exportSysHolidayDetailExcel=(params?:any)=>
	request({
		url:Api.ExportSysHolidayDetail,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加工厂日历排版
export const addSysHolidayDetail = (params?: any) =>
	request({
		url: Api.AddSysHolidayDetail,
		method: 'post',
		data: params,
	});

// 删除工厂日历排版
export const deleteSysHolidayDetail = (params?: any) => 
	request({
			url: Api.DeleteSysHolidayDetail,
			method: 'post',
			data: params,
		});

// 编辑工厂日历排版
export const updateSysHolidayDetail = (params?: any) => 
	request({
			url: Api.UpdateSysHolidayDetail,
			method: 'post',
			data: params,
		});

// 保存工厂日历排版
export const saveSysHolidayDetail = (params?: any) => 
	request({
			url: Api.SaveSysHolidayDetail,
			method: 'post',
			data: params,
		});

// 分页查询工厂日历排版
export const pageSysHolidayDetail = (params?: any) => 
	request({
			url: Api.PageSysHolidayDetail,
			method: 'post',
			data: params,
		});


